package com.jz.netthings.netty.support;

/**
 * 指令
 */
@Deprecated
public enum Command {

    /**
     * 登录请求
     */
    LOGIN_REQUEST (1,"LOGIN_REQUEST"),
    /**
     * 登录响应
     */
    LOGIN_RESPONSE(2,"LOGIN_RESPONSE"),

    /**
     * 人脸识别请求
     */
    FACE_DETECT_REQUEST(3,"FACE_DETECT_REQUEST"),

    /**
     * 人脸识别响应
     */
    FACE_DETECT_RESPONSE(4,"FACE_DETECT_RESPONSE"),
    /**
     * 错误响应
     */
    ERROR_MSG_RESPONSE(500,"ERROR_MSG_RESPONSE");


    private int value;
    private String name;

    private Command(int value,String name){
        this.value = value;
        this.name = name;
    }
    public int getValue(){
        return this.value;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return this.getName();
    }
}
